* 2008 CCAP
* REPLICATION DATA

svyset [pweight=weight]

* Table 1: Optimism and Political Engagement, 2008 CCAP
svy: ologit polinto optim open consci extro agree emostab cconto pido spido educ female black latino age 
svy: ologit folpolo optim open consci extro agree emostab cconto pido spido educ female black latino age
svy: regress newsuses optim open consci extro agree emostab cconts pids spids educ female black latino age
svy: logit ptalko optim open consci extro agree emostab cconto pido spido educ female black latino age
svy: regress lvote optim open consci extro agree emostab cconto pido spido educ female black latino age 
svy: nbreg pparto optim open consci extro agree emostab cconto pido spido educ female black latino age

* Table 3: Optimism and Perceptions of the Nation, 2008 CCAP
svy: logit rdirecto optim open consci extro agree emostab pido spido educ female black latino age 
svy: regress pride optim open consci extro agree emostab pids spids educ female black latino age 
svy: ologit amstando optim open consci extro agree emostab pido spido educ female black latino age 



* SUPPLEMENTAL APPENDIX
********************************************************************************

* Figure A1: Histogram of Optimism, 2008 CCAP
histogram optimism, bin(25)

* Table A3: Eigenvalues from Factor Analysis of Optimism and Pessimism Items
* Table A4: Item Loadings from Factor Analysis
factor opt1 opt2 opt3 pess1 pess2 pess3
factor opt1 opt2 opt3 pess1 pess2 pess3, pcf 

* Table A5: Correlation Matrix, Optimism and Dependent Variables, 2008 CCAP
corr_svy optim polinto folpolo newsuses ptalko lvote pparto rdirecto amstando pride tknow [pweight=weight]

* Table A6: Correlation Matrix, Optimism and Control Variables, 2008 CCAP
corr_svy optim open consci extro agree emostab cconto pido spido educ female black latino age [pweight=weight]

* Table A9: Optimism, Knowledge, and Accuracy, 2018 CCES and 2008 CCAP
svy: nbreg tknow optim open consci extro agree emostab pido spido educ female black latino age 

* Table A10: Optimism and Political Engagement, 2008 CCAP, Regression Estimates
svy: regress polinto optim open consci extro agree emostab cconto pido spido educ female black latino age 
svy: regress folpolo optim open consci extro agree emostab cconto pido spido educ female black latino age
svy: regress newsuses optim open consci extro agree emostab cconts pids spids educ female black latino age
svy: regress ptalko optim open consci extro agree emostab cconto pido spido educ female black latino age
svy: regress lvote optim open consci extro agree emostab cconto pido spido educ female black latino age 
svy: regress pparto optim open consci extro agree emostab cconto pido spido educ female black latino age

* Table A12: Optimism and Perceptions of the Nation, 2008 CCAP, Regression Estimates
svy: regress rdirecto optim open consci extro agree emostab pido spido educ female black latino age 
svy: regress pride optim open consci extro agree emostab pids spids educ female black latino age 
svy: regress amstando optim open consci extro agree emostab pido spido educ female black latino age 

* Table A14: Optimism, Knowledge, and Accuracy, 2018 CCES, Regression Estimates
svy: regress tknow optim open consci extro agree emostab pido spido educ female black latino age 

* Table A15: Predicted Outcomes at Low and High Levels of Trait Optimism
* based on the following post-estimation command 
margins, at(optimism=(0(1)1)) atmeans

* Table A16: Effects of a Standard Deviation's Increase in Optimism on Predicted Outcomes
* based on the following post-estimation command 
margins, at(optimism=(0.662(0.219)0.881)) atmeans

* Table A17: Optimism and Political Engagement, Controlling for Total Campaign Emotions
svy: ologit polinto optim tent tanger tshame open consci extro agree emostab cconto pido spido educ female black latino age 
svy: ologit folpolo optim tent tanger tshame open consci extro agree emostab cconto pido spido educ female black latino age
svy: regress newsuses optim tent tanger tshame open consci extro agree emostab cconts pids spids educ female black latino age
svy: logit ptalko optim tent tanger tshame open consci extro agree emostab cconto pido spido educ female black latino age
svy: regress lvote optim tent tanger tshame open consci extro agree emostab cconto pido spido educ female black latino age 
svy: nbreg pparto optim tent tanger tshame open consci extro agree emostab cconto pido spido educ female black latino age

* Table A18: Optimism and Perceptions of Nation, Controlling for Total Campaign Emotions
svy: logit rdirecto optim tent tanger tshame open consci extro agree emostab pido spido educ female black latino age 
svy: regress pride optim tent tanger tshame open consci extro agree emostab pids spids educ female black latino age 
svy: ologit amstando optim tent tanger tshame open consci extro agree emostab pido spido educ female black latino age 

* Table A19: Optimism and Political Engagement, Controlling for Candidate Emotions
svy: ologit polinto optim dent rent danger ranger dshame rshame open consci extro agree emostab cconto pido spido educ female black latino age 
svy: ologit folpolo optim dent rent danger ranger dshame rshame open consci extro agree emostab cconto pido spido educ female black latino age
svy: regress newsuses optim dent rent danger ranger dshame rshame open consci extro agree emostab cconts pids spids educ female black latino age
svy: logit ptalko optim dent rent danger ranger dshame rshame open consci extro agree emostab cconto pido spido educ female black latino age
svy: regress lvote optim dent rent danger ranger dshame rshame open consci extro agree emostab cconto pido spido educ female black latino age 
svy: nbreg pparto optim dent rent danger ranger dshame rshame open consci extro agree emostab cconto pido spido educ female black latino age

* Table A20: Optimism and Perceptions of Nation, Controlling for Candidate Emotions
svy: logit rdirecto optim dent rent danger ranger dshame rshame open consci extro agree emostab pido spido educ female black latino age 
svy: regress pride optim dent rent danger ranger dshame rshame open consci extro agree emostab pids spids educ female black latino age 
svy: ologit amstando optim dent rent danger ranger dshame rshame open consci extro agree emostab pido spido educ female black latino age 
